package com.lichongbing.lyoggl.mapper;

import com.lichongbing.lyoggl.model.Vflags;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Entity com.lichongbing.lyoggl.model.Vflags
 */
@Component
public interface VflagsMapper extends BaseMapper<Vflags> {
    @Select("select * from vflags where active = '1' and uid = #{userId}  ")
    List<Vflags> findAll(String userId);
    @Select("select * from vflags where   id = #{pid}  ")
    List<Vflags> getByPid(String pid);
}
